package com.jiyun.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author: 刘清芳
 * @description: 分页拦截器
 * @date: 2023/12/21 15:34
 */
@Component
public class MPConfig {
    @Bean
//将对象添加到spring容器中
    PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
